import request from '@/utils/request'

// 查询yp列表
export function listYp(query) {
  return request({
    url: '/his/yp/list',
    method: 'get',
    params: query
  })
}

// 查询yp详细
export function getYp(id) {
  return request({
    url: '/his/yp/' + id,
    method: 'get'
  })
}

// 新增yp
export function addYp(data) {
  return request({
    url: '/his/yp',
    method: 'post',
    data: data
  })
}

// 修改yp
export function updateYp(data) {
  return request({
    url: '/his/yp',
    method: 'put',
    data: data
  })
}

// 删除yp
export function delYp(id) {
  return request({
    url: '/his/yp/' + id,
    method: 'delete'
  })
}

// 导出yp
export function exportYp(query) {
  return request({
    url: '/his/yp/export',
    method: 'get',
    params: query
  })
}